package com.tom.architect.day16.simple1;

/**
 * Added by Tom on 2023/12/15.
 * 被代理的对象：我
 */
public class Man implements IBank {
    private String name;
    public Man(String name) {
        this.name = name;
    }

    // 自己的操作。
    @Override
    public void applyBank() {
        System.out.println(name + "申请一张银行卡。");
    }

    @Override
    public void lostBank() {

    }
}
